﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(LinePoint))]
public class LinePointEditor : Editor
{
    private LinePoint _linePoint;

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        _linePoint = (LinePoint)target;
        if (GUILayout.Button("生成前一段线段控制点0"))
        {
            _linePoint.CreateTf0();
        }
        if (GUILayout.Button("生成后一段线段控制点1"))
        {
            _linePoint.CreateTf1();
        }
    }
}

